package com.ruoyi.db.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.db.domain.MerchantDataPoolInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 商户客户公海信息Mapper接口
 * 
 * @author ruoyi
 * @date 2023-08-24
 */
public interface MerchantDataPoolInfoMapper 
{
    /**
     * 查询商户客户公海信息
     * 
     * @param id 商户客户公海信息主键
     * @return 商户客户公海信息
     */
    public MerchantDataPoolInfo selectMerchantDataPoolInfoById(Long id);





    public List<Map<String, Object>>  selectMerchantDataPoolInfo(MerchantDataPoolInfo merchantDataPoolInfo);

    /**
     * 修改商户客户公海信息
     * 
     * @param merchantDataPoolInfo 商户客户公海信息
     * @return 结果
     */
    public int updateMerchantDataPoolInfo(MerchantDataPoolInfo merchantDataPoolInfo);

    List<Map<String, Object>>  selectCrmData(String dateInfo);
    List<Map<String, Object>>  selectAllCrmData(@Param("startDate") String dateInfo, @Param("endDate") String endDate);


    Long selectAllCrmCount(@Param("startDate") String dateInfo, @Param("endDate") String endDate);

    List<Map<String, Object>> selectCrmDataInfo(@Param("startDate") String startDate, @Param("endDate") String endDate);
}
